package com.goldgov.code.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.goldgov.code.dao.ProjectDao;
import com.goldgov.code.service.Project;
import com.goldgov.code.service.ProjectService;

@Service
public class ProjectServiceImpl implements ProjectService{

	@Autowired
	private ProjectDao projectDao;
	
	@Override
	public String addProject(Project project) {
		return projectDao.addProject(project);
	}

	@Override
	public void updateProject(Project project) {
		projectDao.updateProject(project);
	}

	@Override
	public List<Project> listProject(String userID) {
		return projectDao.listProject(userID);
	}

	@Override
	public Project getProject(String projectID) {
		return projectDao.getProject(projectID);
	}

}
